<?php
	header('Content-Type:text/html;charset=utf-8');
	require('mysql.php');
	
	$date = $_GET[day];
	$time = $_GET[time];
	$condition = $date.";".$time.",";
	if ($date ==null){
		echo "date为空!";
	}
	if ($time ==null){
		echo "time为空!";
	}
	mysql_query("set names utf8");
	$sql = "SELECT allstudent.studentname FROM allstudent, 
				studentworkinlibrary where studentworkinlibrary.spacetime like '%$condition%' and 
				allstudent.studentid=studentworkinlibrary.studentid ";
	$res = mysql_query($sql);
	if($res ==null){
		echo "<br/>查询结果为空!";
	}
// 	else  echo "结果不为空!";
// 	else{
// 		echo "<br/>"."有结果!<br/>";
// 		echo $res;
// 	} 
	while ($row = mysql_fetch_row($res)){
		echo $row[0]."----";
	}
	return $row;
?>